package day05;

public class BankTest {
	public static void main(String[] args) {
		
		Bank bk=new Bank();
		
		bk.addPerson("yyfei",25);
		System.out.println(bk.getPer(0).getName());
		
		//创建账户并存钱
		Account ac=new Account(123456789);
		bk.getPer(0).setAccount(ac);
		bk.getPer(0).getAccount().savaMoney(2000);
		System.out.println(bk.getPer(0).getAccount().getMoney(100));
		System.out.println(bk.getPer(0).getAccount().getBalance());
		
		
		
		
		
	}
}
